/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-03-22 15:35:02
 * @LastEditors: voanit
 * @LastEditTime: 2022-03-22 15:35:20
 */
export default function thunk(state = ['jack', 'rose'], action) {
  switch (action.type) {
    case 'thunk/add':
      return [...state, action.payload]
    default:
      return state
  }
}
